home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-tassta.ads < prev    next >
Text File  |  1996-01-30  |  3KB  |  77 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --                 S Y S T E M . T A S K I N G . S T A G E S                --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.19 $                             --
  10. --                                                                          --
  11. --       Copyright (c) 1991,1992,1993,1994, FSU, All Rights Reserved        --
  12. --                                                                          --
  13. -- GNARL is free software; you can redistribute it  and/or modify it  under --
  14. -- terms  of  the  GNU  Library General Public License  as published by the --
  15. -- Free Software  Foundation;  either version 2, or (at  your  option)  any --
  16. -- later  version.  GNARL is distributed  in the hope that  it will be use- --
  17. -- ful, but but WITHOUT ANY WARRANTY;  without even the implied warranty of --
  18. -- MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. -- eral Library Public License  for more details.  You should have received --
  20. -- a  copy of the GNU Library General Public License along with GNARL;  see --
  21. -- file COPYING.LIB.  If not,  write to the  Free Software Foundation,  675 --
  22. -- Mass Ave, Cambridge, MA 02139, USA.                                      --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. package System.Tasking.Stages is
  27.    --  This interface is described in the document
  28.    --  Gnu Ada Runtime Library Interface (GNARLI).
  29.  
  30.    pragma Elaborate_Body (System.Tasking.Stages);
  31.  
  32.    function Current_Master return Master_ID;
  33.  
  34.    procedure Enter_Master;
  35.  
  36.    procedure Complete_Master;
  37.  
  38.    procedure Create_Task
  39.      (Size          : Size_Type;
  40.       Priority      : Integer;
  41.       Num_Entries   : Task_Entry_Index;
  42.       Master        : Master_ID;
  43.       State         : Task_Procedure_Access;
  44.       Discriminants : System.Address;
  45.       Elaborated    : Access_Boolean;
  46.       Chain         : in out Activation_Chain;
  47.       Created_Task  : out Task_ID);
  48.  
  49.    procedure Activate_Tasks (Chain_Access : Activation_Chain_Access);
  50.  
  51.    procedure Expunge_Unactivated_Tasks (Chain : in out Activation_Chain);
  52.  
  53.    procedure Complete_Activation;
  54.  
  55.    procedure Complete_Task;
  56.  
  57.    function Terminated (T : Task_ID) return Boolean;
  58.  
  59.    -------------------------------
  60.    -- RTS Internal Declarations --
  61.    -------------------------------
  62.    --  These declarations are not part of the GNARLI.
  63.  
  64.    procedure Leave_Task;
  65.    --  Export for abortion
  66.  
  67.    procedure Init_Master (M : out Master_ID);
  68.    pragma Inline (Init_Master);
  69.  
  70.    function Increment_Master (M : Master_ID) return Master_ID;
  71.    pragma Inline (Increment_Master);
  72.  
  73.    function Decrement_Master (M : Master_ID) return Master_ID;
  74.    pragma Inline (Decrement_Master);
  75.  
  76. end System.Tasking.Stages;
  77.